<?php

namespace Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name="balance")
 */
class Balances extends MappedSuperclassBase
{

    /**
     *
     * @var integer
     * @ORM\ManyToOne(targetEntity="User", inversedBy="balances")
     */
    protected $user;
    /**
     *
     * @var type integer
     * @ORM\ManyToOne(targetEntity="Sim", inversedBy="balances")
     */
    protected $sim;
    /**
     *
     * @var string 
     * @ORM\Column(type="string")
     */
    protected $typeUp;
    /**
     *
     * @var decimal
     * @ORM\Column(type="decimal", precision=10, scale=2) 
     */
    protected $balance;
    /**
     *
     * @var datetime
     * @ORM\Column(type="datetime", name="date_balance")
     */
    protected $dateBalance;
    
    
    /**
     * 
     * @return User
     */
    public function getUser()
    {
        return $this->user;
    }

    public function setUser(User $user)
    {
        $this->user = $user;
    }
    /**
     * 
     * @return Sim
     */
    public function getSim()
    {
        return $this->sim;
    }

    public function setSim(Sim $sim)
    {
        $this->sim = $sim;
    }

    public function getTypeUp()
    {
        return $this->typeUp;
    }

    public function setTypeUp($typeUp)
    {
        $this->typeUp = $typeUp;
    }

    public function getBalance()
    {
        return $this->balance;
    }

    public function setBalance($balance)
    {
        $this->balance = $balance;
    }

    public function getDateBalance()
    {
        return $this->dateBalance;
    }

    public function setDateBalance($dateBalance)
    {
        $this->dateBalance = $dateBalance;
    }

}